package com.mallcloud.mall.common.core.constant.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * 前端类型类型
 */
@Getter
@AllArgsConstructor
public enum StyleTypeEnum {

	AVUE("0", "avue"),
	ELEMENT("1", "element"),
	UVIEW("2", "uview"),
	MAGIC("3", "magic"),
	;

	private String style;
	private String description;

	public static String getDecs(String style) {
		return Arrays.stream(values()).filter(x -> x.getStyle().equals(style)).findFirst().get().getDescription();
	}

}
